import request from '@/utils/request'

// 查询校区作品管理列表
export function listArtworks(query) {
  return request({
    url: '/artworks/artworks/list',
    method: 'get',
    params: query
  })
}

// 查询校区作品管理详细
export function getArtworks(artworksId) {
  return request({
    url: '/artworks/artworks/' + artworksId,
    method: 'get'
  })
}

// 新增校区作品管理
export function addArtworks(data) {
  return request({
    url: '/artworks/artworks',
    method: 'post',
    data: data
  })
}

// 修改校区作品管理
export function updateArtworks(data) {
  return request({
    url: '/artworks/artworks',
    method: 'put',
    data: data
  })
}

// 删除校区作品管理
export function delArtworks(artworksId) {
  return request({
    url: '/artworks/artworks/' + artworksId,
    method: 'delete'
  })
}

// 查询所有作品类型
export function selectTypeList(query) {
  return request({
    url: '/artworks/artworks/selectAllArtType',
    method: 'get',
    params: query
  })
}
